﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	@*<script type="text/javascript" src="<%=ResolveUrl("~/Scripts/ie6warning/warning.js")%>"></script>*@

	<script src="http://www.google.com/jsapi" type="text/javascript"></script>

	<script type="text/javascript">
		google.load("jquery", "1.4.2");
		google.load("jqueryui", "1.8.6");
	</script>

	<title>@MvcHtmlString.Create(ViewBag.Title)</title>
	<meta name="description" content="@MvcHtmlString.Create(ViewBag.Title)" />
	
	<link rel="alternate" title="@Helper.BlogName" href="http://feeds.feedburner.com/starcub"
		type="application/rss+xml" />
	<link href="../../Content/Themes/HTML5/css/960.css" rel="stylesheet" type="text/css" />
	<link href="../../Content/Themes/HTML5/style.css" rel="stylesheet" type="text/css" />
	<!--[if IE]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
	<![endif]-->
	<!--[if lte IE 7]>
		<link href="../../Content/Themes/HTML5/css/ie.css" rel="stylesheet" type="text/css" />
	<![endif]-->
	<script type="text/javascript" src="../../Content/Themes/HTML5/js/script.js"></script>
	<script src="../../Scripts/syntaxhighlighter/scripts/shCore.js" type="text/javascript"></script>

	<script src="../../Scripts/syntaxhighlighter/scripts/shBrushCSharp.js" type="text/javascript"></script>

	<script src="../../Scripts/syntaxhighlighter/scripts/shBrushSql.js" type="text/javascript"></script>

	<script src="../../Scripts/syntaxhighlighter/scripts/shBrushXml.js" type="text/javascript"></script>

	<script src="../../Scripts/syntaxhighlighter/scripts/shBrushPython.js" type="text/javascript"></script>

	<link href="../../Scripts/syntaxhighlighter/styles/shCore.css" type="text/css" rel="stylesheet" />
	<link href="../../Scripts/syntaxhighlighter/styles/shThemeDefault.css" type="text/css"
		rel="stylesheet" />

	<script type="text/javascript">
		SyntaxHighlighter.config.clipboardSwf = '../../Scripts/syntaxhighlighter/scripts/clipboard.swf';
		SyntaxHighlighter.all();
	</script>

	<script type="text/javascript">
		function ToggleSideBar()
		{
			$("#sidebar").toggle();
			if ($("#main").hasClass("grid_9 alpha"))
			{
				$("#main").removeClass("grid_9 alpha");
				$("#main").addClass("grid_12 alpha");
			}
			else
			{
				$("#main").removeClass("grid_12 alpha");
				$("#main").addClass("grid_9 alpha");
			}
		}
	</script>

	<!-- Google Analytics Code -->
	<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-12740722-1']);
		_gaq.push(['_trackPageview']);

		(function ()
		{
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
	</script>
</head>
<body>
	<div id="wrapper" class="container_12">
		<header id="header" class="grid_12">
			<h1><a href="@Url.Content("~/")">@Helper.BlogName</a></h1>
		</header>
		<!-- end header -->
		<div id="logindisplay">
				@{Html.RenderPartial("LogOnUserControl");}
		</div>
		<div id="content">
			<nav>
				<ul id="menu" class="clearfix"> 
					<li class="current"><a href="@Url.Content("~/")">HOME</a></li>
					<li><a href="javascript:ToggleSideBar();">Toggle SideBar</a></li>
					<li><a href="@Url.Content("~/Buzz") ">Buzz/Tweets</a></li>
					<li>@Html.ActionLink("ABOUT", "About", "Home")</li>
				</ul>
				<div>
					<span class="rss">
						<a href="http://feeds.feedburner.com/starcub">订阅我的博客</a>
					</span>
				</div>
				<br class="clear" />
			</nav>
	<!-- Show a "Please Upgrade" box to both IE7 and IE6 users (Edit to IE 6 if you just want to show it to IE6 users) - Jquery will load the content from js/ie.html in the div -->
	
	<!--[if lte IE 7]>
		<div class="ie grid_7"></div>
	 <![endif]-->
			<section id="main" class="grid_9 alpha">
				@RenderSection("MainContent", required: true)
			</section>
			<aside id="sidebar" class="grid_3 omega">
				<div class="widget">
					@{Html.RenderPartial("SideBar");}
				</div> <!-- end widget -->
			</aside>
			<!-- end sidebar -->
		</div>
		<!-- end content -->
		<footer id="footer" class="grid_12">
			<p>All Rights Reserved &copy 2010 <a href="http://shawnjiang.com">Shawn</a></p>
		</footer>
		<!-- end footer -->
		<div class="clear">
		</div>
	</div>

	<!-- end wrapper -->
	@*<div class="page">
			<div id="topMenu-Search">
				<form id="searchform" action="<%=ResolveUrl("~/Search/") %>" method="get">
					<input type="text" id="searcherm" name="searchTerm" onblur="if (value ==''){value='Search...'}" onfocus="if (value =='Search...'){value =''}" value="Search..."/>
					<select name="searchMode">
						<option value="TitlesOnly">Titles Only</option>
						<option value="FullText">Full Text</option>
					</select>
					<input type="submit" id="btnSubmit" name="btnSubmit" title="Go" value="Go" />
				</form>
			</div>
	</div>*@

</body>
</html>